
package bishi.duoduo;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;
import java.util.stream.Collectors;

/**
 * @Classname Main1
 * @Description TODO
 * @Date 2021/9/22 15:05
 * @Created by ASUS
 */
public class Main1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int m = Integer.parseInt(scanner.nextLine());
        String[] s = scanner.nextLine().split(" ");
        int[] sections = new int[m];
        for (int i = 0; i < m; i++) {
            sections[i] = Integer.parseInt(s[i]);
        }
        int n = Integer.parseInt(scanner.nextLine());
        s = scanner.nextLine().split(" ");
        int[] books = new int[n];
        for (int i = 0; i < n; i++) {
            books[i] = Integer.parseInt(s[i]);
        }
        scanner.close();
        for (int book : books) {
            for (int i = 0; i < sections.length; i++) {
                if (book <= sections[i]) {
                    System.out.println(i + 1);
                    break;
                } else book -= sections[i];
            }
        }
    }
}

